import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  name: [{ required: true, message: "名称为必填项", trigger: "blur" }],
  mobile: [{ required: true, message: "手机号为必填项", trigger: "blur" }],
  car_number: [{ required: true, message: "车牌号为必填项", trigger: "blur" }],
  car_no_color: [
    { required: true, message: "请选择车牌颜色", trigger: "blur" }
  ],
  car_type: [{ required: true, message: "请选择车辆类型", trigger: "blur" }],
  order_type: [{ required: true, message: "请选择客户类型", trigger: "blur" }],
  out_time: [{ required: true, message: "请选择有效期", trigger: "blur" }]
});
